<?php
/**
 * 提供日志服务
 */
require_once './log/LogFormat.php';
require_once './log/FileDispose.php';
require_once './log/MysqlDispose.php';
require_once './log/DisposeFactory.php';

$project = "project";
$module = "module";
$level = "info";
$content = "content";
$separator = '|||';

$log_data = array(
            "project" => $project,
            "module" => $module,
            "level" => $level,
            "content" => $content,
            "separator"=> $separator,
        );
//write log in file
DisposeFactory::dispose($log_data,"File");

//write log in mysql
unset($log_data["separator"]);
DisposeFactory::dispose($log_data,"Mysql");





